package com.skywolf.chem.usercenter.pojo.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 用户角色DTO
 */
@ToString
@ApiModel(value = "角色绑定权限", description = "角色设置权限")
@Data
public class UserRoleParam {
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", required = true)
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    /**
     * 角色ID
     */
    @NotEmpty(message = "角色id不能为空")
    @ApiModelProperty(value = "角色ID集合", required = true)
    private List<Long> roleIdList;
}
